package com.yingsheng.bi.hks.dto.goods;

import com.yingsheng.bi.hks.dto.HksTransRes;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class GoodsBuyRes extends HksTransRes {

    @ApiModelProperty(value = "时间戳", required = true, example = "1414561699")
    private String timeStamp;

    @ApiModelProperty(value = "随机字符串", required = true, example = "1414561699")
    private String nonceStr;

    @ApiModelProperty(value = "前端调起收银台参数", required = true,
            example = "prepay_id=wx201410272009395522657a690389285100",
            notes = "后端处理过成prepay_id=***的格式,前端可直接拿来赋值给package字段")
    private String packageValue;

    @ApiModelProperty(value = "签名类型", required = true, allowableValues = "RSA" , notes = "仅支持RSA")
    private String signType;

    @ApiModelProperty(value = "支付签名",
            allowableValues = "使用字段appId、timeStamp、nonceStr、package计算得出的签名值",
            notes = "签名所使用的appid，为【小程序下单】时传入的appid，微信支付会校验下单与调起支付所使用的appid的一致性。")
    private String paySign;
    

}
